
package org.example.service;
import com.baomidou.mybatisplus.extension.service.IService;

import org.example.entity.ExamPaperEntity;
import org.example.entity.QuestionInfoEntity;

import java.util.List;

public interface ExamPaperSaveService extends IService<ExamPaperEntity> {

    /**
     * 保存试卷及其题目
     * @param examPaper 试卷对象
     * @param questions 题目列表
     * @return 是否保存成功
     */
    boolean saveExamPaperWithQuestions(ExamPaperEntity examPaper, List<QuestionInfoEntity> questions);
}
